﻿using System.Web;
using System.Web.Optimization;

namespace tcms
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
		{
            bundles.Add(new ScriptBundle("~/bundles/js/jquery").Include(
                        "~/Content/common/js/jquery-{version}.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/js/jquery_validate").Include(
                        "~/Content/common/js/jquery-{version}.js",
                        "~/Content/common/js/jquery.validate-{version}.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/js/jquery_form_validate").Include(
                        "~/Content/common/js/jquery-{version}.js",
                        "~/Content/common/js/jquery.form.js",
                        "~/Content/common/js/jquery.validate-{version}.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/js/jquery_ui_ligerui").Include(
                        "~/Content/common/js/jquery-{version}.js",
                        //"~/Content/bootstrap/js/bootstrap.js",
                        "~/Content/jqueryui/js/jquery-ui-{version}.js",
                        "~/Content/timepicker/jquery-ui-sliderAccess.js",
                        "~/Content/timepicker/jquery-ui-timepicker-addon.js",
                        "~/Content/timepicker/localization/jquery-ui-timepicker-zh-CN.js",

                        "~/Content/ligerUI/js/core/base.js",
                        "~/Content/ligerUI/js/plugins/ligerGrid.js",
                        "~/Content/ligerUI/js/plugins/ligerResizable.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/js/jquery_ui_validate_ligerui").Include(
                        "~/Content/common/js/jquery-{version}.js",
                        //"~/Content/bootstrap/js/bootstrap.js",
                        "~/Content/jqueryui/js/jquery-ui-{version}.js",
                        "~/Content/timepicker/jquery-ui-sliderAccess.js",
                        "~/Content/timepicker/jquery-ui-timepicker-addon.js",
                        "~/Content/timepicker/localization/jquery-ui-timepicker-zh-CN.js",
                        "~/Content/common/js/jquery.form.js",
                        "~/Content/common/js/jquery.validate-{version}.js",

                        "~/Content/ligerUI/js/core/base.js",
                        "~/Content/ligerUI/js/plugins/ligerGrid.js",
                        "~/Content/ligerUI/js/plugins/ligerResizable.js"
            ));

            //BundleTable.EnableOptimizations = true;
		}
    }
}